const fp = require('lodash/fp');
let cars = [
    {
        name:'car1',
        in_stock:false,
        dollar_value:1,
    },
    {
        name:'car2',
        in_stock:true,
        dollar_value:1,
    },
];
let getFirstCarName = fp.flowRight(fp.prop('name'),fp.first);
console.log(getFirstCarName(cars));